<template>
  <div class="home-head">
    <div class="gd-headTop">
      <div class="zyy_indexTop" style="position:relative"  align="center">
        <span style="color:#fff;position:absolute;left:0;font-size:25px;
        top:50%;transform:translateY(-50%); cursor:pointer;" 
            v-if="showLeft" @click="goBack"
        >
          <
        </span>
        <div class="search"> 
            {{name}}
        </div> 
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "homeHead", 
  props:{
      name:String,
      showLeft:false,
  },
  methods: {
    // 返回
    goBack() { 
        this.$router.go(-1);
    },
  }
};
</script>
<style lang="scss" scoped> 
@import "../../assets/css/zyy_phone.css";
@import "../../assets/css/search.css";
.search {
  z-index:999;
    font-size:18px;
    color:#fff; 
    vertical-align: middle;
}
</style>